from django.urls import path
from . import views
urlpatterns = [
    path('all/',views.SPUView.as_view()),
    path('spu/<int:id>/', views.Spu.as_view()),
    path('brand/', views.Brands.as_view()),
    path('brand/<int:id>/', views.Brands.as_view()),
    path('sku/', views.SKUView.as_view()),
    path('spus/', views.Spus.as_view()),
    path('skus/<int:id>/', views.SKUInfo.as_view()),
    path('spu_specs/', views.Specs.as_view()),
    path('spu_specs/<int:id>/', views.SpecInfo.as_view()),
    path('option/', views.Option.as_view()),
    path('specs/', views.Spec.as_view()),
    path('info/<int:id>/', views.OptionInfo.as_view()),
    path('imgs/', views.Images.as_view()),
    path('imgs/info/<int:id>/', views.ImageInfo.as_view()),
    path('skus/', views.Skus.as_view()),
    path('imgs/get_token/', views.QiNiuFiles.as_view()),

]